﻿
namespace SaveTheQueen.Data
{
    public class DoubleLinkedNode<T>
    {
        private DoubleLinkedNode<T> previous;
        private DoubleLinkedNode<T> next;
        private T value;

        public DoubleLinkedNode(DoubleLinkedNode<T> previous, DoubleLinkedNode<T> next, T value)
        {
            this.previous = previous;
            this.next = next;
            this.value = value;
        }
        public DoubleLinkedNode(DoubleLinkedNode<T> previous, DoubleLinkedNode<T> next)
        {
            this.previous = previous;
            this.next = next;
        }

        public T Value
        {
            get { return value; }
            set { this.value = value; }
        }

        public DoubleLinkedNode<T> Previous
        {
            get { return previous; }
            set { previous = value; }
        }
        public DoubleLinkedNode<T> Next
        {
            get { return next; }
            set { next = value; }
        }
    }
}
